<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改设置评分标准')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-scoreStandard-edit" th:object="${experimentScoreStandard}">
            <input name="standardId" th:field="*{standardId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">评分标准名称：</label>
                    <div class="col-sm-8">
                        <input name="standardName" th:field="*{standardName}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">指定课程ID：</label>
                    <div class="col-sm-8">
<!--                        <input name="arrangementId" th:field="*{arrangementId}" class="form-control" type="text" required>-->
                        <select name="arrangementId" class="form-control">
                            <option th:each="courseArrangement:${courseArrangements}" th:value="${courseArrangement.arrangementId}" th:text="${courseArrangement.courseName}" th:selected="${courseArrangement.courseId == experimentScoreStandard.courseId}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">总分值：</label>
                    <div class="col-sm-8">
                        <input name="totalScore" th:field="*{totalScore}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "college/scoreStandard";
        $("#form-scoreStandard-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-scoreStandard-edit').serialize());
            }
        }
    </script>
</body>
</html>